package com.muatocroi.tornado;

public class CommandKeyboard extends CommandSignal {

	public CommandKeyboard() {
		cmdCode = 101;
	}

	public static CommandKeyboard KeyDown(VirtualKeyCode keyCode) {
		CommandKeyboard c = new CommandKeyboard();
		c.exCode = 0;
		c.arg = keyCode.Code();
		return c;
	}

	public static CommandKeyboard KeyUp(VirtualKeyCode keyCode) {
		CommandKeyboard c = new CommandKeyboard();
		c.exCode = 1;
		c.arg = keyCode.Code();
		return c;
	}

	public static CommandKeyboard KeyPress(VirtualKeyCode keyCode) {
		CommandKeyboard c = new CommandKeyboard();
		c.exCode = 2;
		c.arg = keyCode.Code();
		return c;
	}
}
